package com.xiaobo.framework.getway;

import org.springframework.cloud.gateway.route.RouteLocator;
import org.springframework.cloud.gateway.route.builder.RouteLocatorBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @author: <a href="get_xiaobo@163.com">Josh_Xu</a>
 * @description:
 * @create: 2020-05-18 17:43
 **/
@Component
public class HomeRouter {

 /*   @Bean
    public RouteLocator customRouteLocator(RouteLocatorBuilder builder) {
        return builder.routes()
                .route(r -> r.path("/")
                        .filters(f -> f.addRequestHeader("HelloKey", "WorldValue"))
                        .uri("https://www.baidu.com/"))
                .build();
    }*/
}
